package com.pig.mapper.dao;


import com.pig.pojo.CookBook;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MenuDao {
    int getCount(String menuName);
    //@Select("select * from p_cookbook")
    List<CookBook> findObject(String menuName, int indexSize, int pageSize);
    CookBook findObjectById(Integer id);

    int insertObject(CookBook cookBook);

    int deleteMenuById(Integer id);
}
